#include <QtCore/QCoreApplication>
#include <QDebug>

#include "simspserver.h"

#include <stdio.h>
#include <stdlib.h>

#include "p1wrap\p1wrap.h"

#include <QThread>
int main(int argc, char *argv[])
{
    QCoreApplication a(argc, argv);
    
    qDebug() << "main thread = " << QThread::currentThread ();

    SimSpServer server;
    //int port = 50000;
    int port = 7500;
    qDebug() << "SimSpServer start listen at " << port;
    if (!server.listen(QHostAddress::Any,port))
    {
        qDebug() << "Unable to start the server: %1."
                << server.errorString();
        getchar();
        return -1;
    }


    return a.exec();
}
